import { useLocation } from "react-router-dom"
function Home(props) {
    const location = useLocation()
    return (
        <div>
           <h1> 这是一个Home页面</h1>
           <p>{location.state}</p>
        </div>
    )
}
export default Home